package com.ruoci.redis.constants;

/**
 * @Author yang
 * 业务常量
 **/
public class BusinessConstants {

    private BusinessConstants() {
    }

    /**
     * 限流key标识
     */
    public static final String REQ_LIMIT = "req_limit_";

    /**
     * 用户key标识
     */
    public static final String USER_DATA = "user_data";

    /**
     * key标识
     */
    public static final String RANDOM_KEY = "random_key";

    /**
     * key标识
     */
    public static final String PRODUCT_LOCK = "product_lock";

    /**
     * key标识
     */
    public static final String STOCK = "stock";

    /**
     * 常量时间 100
     */
    public static final long TIME_100 = 100;

    /**
     * 常量时间 10
     */
    public static final long TIME_10 = 10;

    /**
     * 双写锁key标识
     */
    public static final String CONSISTENCE_LOCK = "consistence_lock";

    /**
     * 修改成功
     */
    public static final String SUCCESSFULLY_MODIFIED = "修改成功";

    /**
     * 签到标识
     */
    public static final String USER_SIGN_KEY = "sign";

    /**
     *时间格式化
     */
    public static final String USER_SIGN_FORMAT =":yyyyMM";

    /**
     * 签到成功
     */
    public static final String SUCCESS_SIGNED_IN ="签到成功";

    /**
     * 是否签到
     */
    public static final String CHECK_IN_OR_NOT ="今天是否签到";

    /**
     * 当月首次签到日期
     */
    public static final String FIRST_CHECK_IN_MONTH ="当月首次签到日期";

    /**
     * 当月签到总次数
     */
    public static final String TOTAL_CHECK_IN_MONTH ="当月签到总次数";

    /**
     * 本月连续签到的次数
     */
    public static final String CONSECUTIVE_CHECK_IN_MONTH ="本月连续签到的次数";

    /**
     * 时间格式化
     */
    public static final String HLL_DATA_FORMAT =":yyyyMMdd";


    /**
     * hll标识
     */
    public static final String ACTIVE_USER_KEY = "active:user";
}

